#pragma once

#ifndef CONFIGCOAPP_H
#define CONFIGCOAPP_H

#define DEF_MAX_LIFE 15

#define CAB_ADJUST 1
#define CAB_DOING 2
#define CAB_DONE 3

#include "TouchScreen.h"
#include "EventListener.h"
#include "vector2d.h"

class ConfigCoApp : public EventListener
{
private:
	int life;
	int max_life;
	int cur_mode;
	vector2dd active_p[DEF_MAX_LIFE];

	void press(TouchData data);
	void point_confirm(void);

public:
	ConfigCoApp(void);
	void start(void);
	void touch_down(TouchData data);
	void touch_up(TouchData data);
	void touch_update(TouchData data);

	void touch_event(const std::vector<TouchData> &tdata);

	~ConfigCoApp(void);

};

#endif